<%-- 
    Document   : error
    Created on : May 9, 2008, 8:23:24 PM
    Author     : Administrator
--%>
<%@page isErrorPage="true"%>
<%@ page import="Model.Model" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h2>Error Page</h2>
        <%
            Model m = (Model) session.getAttribute("model");
            out.print("model error message: <br>");
            out.print(m.getErrorMessage());
            out.print("<br><br>");
           
            for( StackTraceElement s : exception.getStackTrace() ){
                out.print(s + "<br>");
            }
        %>
    </body>
</html>
